package com.zp.server.conf;

import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author zhangpeng
 * @version 1.0.0
 * @date 2019/6/22 14:45
 * @since 1.0
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "netty")
public class NettyConfProperties {

    /**
     * 端口
     */
    private int port;

    /**
     * boss 线程数量
     */
    private int bossCount;

    /**
     * worker 线程数量
     */
    private int workerCount;

    /**
     * keepAlive
     */
    private boolean keepAlive=true;

    /**
     * backlog
     */
    private int backlog=1024;
}
